// 需要兼容字段


export enum Compatibility {
    _isMultiCascader = '_isMultiCascader', // 多级多选字段
    _isOtherFormCondition = '_isOtherFormCondition', // 其他表单条件
    _isOtherFormExecute = '_isOtherFormExecute', // 其他表单执行节点执行
    _isTimerJsonParse = '_isTimerJsonParse', // 定时器格式化
    _isExecuteActionUpdateCondition = '_isExecuteActionUpdateCondition',// 执行节点的更新条件
    _isExecuteActionDeleteCondition = '_isExecuteActionDeleteCondition' // 执行节点的删除条件
}

export type CompatibilityField = _isMultiCascader | _isOtherFormCondition | _isOtherFormExecute | _isTimerJsonParse;

interface base {
    nodeUniqueId: string;
}
export interface _isMultiCascader extends base {
    _isMultiCascader: boolean;
    index: number;
}

export interface _isOtherFormCondition extends base{
    _isOtherFormCondition: boolean;
    i: number;
    j: number;
}

export interface _isOtherFormExecute extends base {
    _isOtherFormExecute: boolean;
    index: number;
    status: 'create' | 'update'
}

export interface _isTimerJsonParse {
    _isTimerJsonParse: boolean;
    execute: string;
}

export interface _isExecuteActionUpdateCondition extends base {
    _isExecuteActionUpdateCondition: boolean;
    index: number;
}

export interface _isExecuteActionDeleteCondition extends base {
    _isExecuteActionDeleteCondition: boolean;
    index: number;
}